home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / bc_pas_1.zip / MAIN.C < prev    next >
C/C++ Source or Header  |  1992-06-23  |  1KB  |  62 lines

  1. /*$Author:   DCODY  $*/
  2. /*$Date:   23 Jun 1992 16:45:22  $*/
  3. /*$Header:   W:/sccs/mixers/main.c_v   1.1   23 Jun 1992 16:45:22   DCODY  $*/
  4. /*$Log:   W:/sccs/mixers/main.c_v  $
  5.  * 
  6.  *    Rev 1.1   23 Jun 1992 16:45:22   DCODY
  7.  * PAS2 update
  8.  * 
  9.  *    Rev 1.0   15 Jun 1992 09:41:26   BCRANE
  10.  * Initial revision.
  11. */
  12. /*$Logfile:   W:/sccs/mixers/main.c_v  $*/
  13. /*$Modtimes$*/
  14.  
  15. #include <stdlib.h>
  16.  
  17.     int OurCallBackRoutine(char *);
  18.  
  19.     extern int MixerDialogInit ();
  20.     extern int MixerDialogBox  ();
  21.     extern int MixerGetSettings();
  22.     extern int MixerDialogHalt ();
  23.  
  24. main(argc,argv)
  25.     int argc;
  26.     char *argv[];
  27. {
  28. char videochar = 0;
  29.  
  30.     // the only parameter is a decimal value to put up as a background character
  31.  
  32.         if (argc > 1)
  33.             videochar = atoi (argv[1]);
  34.  
  35.     // initialize the dialog box just once
  36.  
  37.         if (!MixerDialogInit()) {
  38.  
  39.             // run the dialog box as many times has you want...
  40.  
  41.                 MixerDialogBox    (videochar);
  42.  
  43.             // ask the mixer code to give us all the settings
  44.  
  45.                 MixerGetSettings(&OurCallBackRoutine);
  46.  
  47.             // terminate the dialog box just once
  48.  
  49.                 MixerDialogHalt ( );
  50.  
  51.         }
  52. }
  53.  
  54.  
  55. int OurCallBackRoutine(s)
  56.     char *s;
  57. {
  58.     printf ("%s\n",s);
  59. }
  60.  
  61.  
  62.